/***
 * R-ZBZB-202109280789713：添加下载图标，增加下载列表页面
 */
import request from "@/utils/request";
export const service = () => {
  return !!JSON.parse(localStorage.$loginInfo).tenantId ? "/event" : "/ttevent";
};
// 调用收藏请求
export function addWarningOrderCollection(query) {
  return request({
    url: service() + "/alarm/order/collection/addWarningOrderCollection",
    method: "post",
    data: query,
  });
}
// 取消收藏
export function delWarningOrderCollection(query) {
  return request({
    url: service() + "/alarm/order/collection/delWarningOrderCollection",
    method: "post",
    data: query,
  });
}
//认领处理单
export function grabProcessOrder(query) {
  return request({
    url: service() + "/alarm/processorder/grabProcessOrder",
    method: "post",
    data: query,
  });
}
//获取订单列表getOrderList
export function getOrderList(query) {
  return request({
    url: service() + "/alarm/order/getOrderList",
    method: "post",
    data: query,
  });
}
